<template>
  <gz-face-verification-old
      :identityinfo='identityinfo'
     
      ></gz-face-verification-old>
</template>

<script>
export default {
data(){
    return{
        identityinfo:{
             idCard: localStorage.getItem('mateMsgObj')?JSON.parse(localStorage.getItem('mateMsgObj')).cardCode:'', //（身份证号）
            name: localStorage.getItem('mateMsgObj')?JSON.parse(localStorage.getItem('mateMsgObj')).authorizedName:'', //（客户姓名）
           fileType: 'IML010201'
        }
       
    }
},
mounted(){
   this.getint()
  
},
methods:{
      getint() {
      // 获取token是http://localhost:8080/biz/loginBy/jwtForMobile（行内）参数是account默认wxApplets、audience默认Applets
      //微信银行 account/audience: wxBank, 手机银行 account/audience: mobileBank
      return new Promise((resolve) => {
        let defer = this.baseService.postForm(
          this.__ctx + "/biz/loginBy/jwtForMobile",
          {
            account: process.env.account, //默认
            audience: process.env.account, //默认
          }
        );
        defer.then((data) => {
          if (data.isOk) {
            resolve();
          } else {
            this.$vux.toast.show({
              type: "warn",
              text: data.msg,
            });
          }
        });
      });
    },
}
}
</script>

<style>

</style>